package Fruit;

public class Fruit {
String name;
String area;
String price;
public Fruit(){

}

    public Fruit(String name, String area, String price) {
        this.name = name;
        this.area = area;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
    public void wash(){
        System.out.println("清洗水果："+getName());
    }
    public void peek(){
        System.out.println(getName()+"去皮~~~");
    }
    public void juice(){
        System.out.println(getName()+"榨汁中~~~~~~");
    }

    @Override
    public String toString() {
        return "水果单{" +
                "产品：'" + name + '\'' +
                ", 产地：'" + area + '\'' +
                ", 价格：'" + price + '\'' +
                '}';
    }

}



